package org.jiajie.coffeecodes.concurrent.pattern.guarded.suspension;

/**
 * @author jie
 * @date 2021/8/31 10:39 PM
 */
public class SuspensionClient {

    public static void main(String[] args) throws InterruptedException {
        final RequestQueue queue = new RequestQueue();
        new ClientThread(queue, "Jack").start();
        ServerThread serverThread = new ServerThread(queue);
        serverThread.start();

        Thread.sleep(10000);
        serverThread.close();
    }
}
